package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {

	key1 := 25
	flage1 := false
	count := 1
	rand.Seed(time.Now().Unix())

	for {
		//count := 1
		for i := 0; i < 10; i++ {
			a1 := rand.Intn(10000)
			if a1 == key1 {
				flage1 = true
				fmt.Println("Good Luck! The key is:", a1)

				break
			} else {
				fmt.Println(a1)
			}

		}

		fmt.Println("这是第", count, "个十连抽")
		count += 1
		if flage1 == true {
			break
		}
	}
}
